import request from '@/utils/request'

// 查询运营维护阶段列表
export function listOperationPhase(query) {
  return request({
    url: '/business/operationPhase/list',
    method: 'get',
    params: query
  })
}

// 查询运营维护阶段详细
export function getOperationPhase(operationId) {
  return request({
    url: '/business/operationPhase/' + operationId,
    method: 'get'
  })
}

// 新增运营维护阶段
export function addOperationPhase(data) {
  return request({
    url: '/business/operationPhase',
    method: 'post',
    data: data
  })
}

// 修改运营维护阶段
export function updateOperationPhase(operationId, data) {
  return request({
    headers: {
      repeatSubmit: true,
      interval: 2000
    },
    url: '/business/operationPhase/' + operationId,
    method: 'put',
    data: data
  })
}

// 删除运营维护阶段
export function delOperationPhase(operationId) {
  return request({
    url: '/business/operationPhase/' + operationId,
    method: 'delete'
  })
}
